/*
 *@Description: 小说章节
 *@Author: panlua
 *@Date: 2019-06-24 16:26:15
*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const BookChapter = new Schema({
  bookInfoId: {
    type: String,
    required: true
  },
  name: {
    type: String,
    required: true
  },
  content: {
    type: String,
    require: true
  },
  gatUrl: {
    type: String,
    required: true
  },
  createDate: {
    type: Date,
    default: Date.now
  }
})

module.exports = mongoose.model('BookChapter', BookChapter, 'bookChapter')